<?php

namespace app\common\model\mysql;

use think\Model;

class Demo extends Model
{
    protected $table = 'fa_category';


    public function getStatusTextAttr($varlue, $data){
        $status = [
            0 => '待审核',
            1 => '正常',
            999 => '删除'
        ];
        return $status[$data['status ']];
    }
}